<Mcml
  xmlns="http://schemas.microsoft.com/2006/mcml"
  xmlns:cor="assembly://MSCorLib/System"
  xmlns:addin="assembly://Microsoft.MediaCenter/Microsoft.MediaCenter.Hosting"
  xmlns:me="Me">


  <!-- Color -->
  <Color Name="TitleColor" Color="255,255,255"/>
  <Color Name="SubTitleColor" Color="255,255,255"/>
  <Color Name="DescriptionColor" Color="149,214,253"/>
  <!-- Font -->
  <Font Name="TitleFont" Font="Microsoft YaHei,28"/>
  <Font Name="SubTitleFont" Font="Microsoft YaHei,22"/>
  <Font Name="DescriptionFont" Font="Microsoft YaHei,18"/>
  <!-- Image -->
  <Image Name="Background" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/COMMON.BACKGROUND.PNG"/>
  <Image Name="Background1" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/bg2.PNG"/>
  <Image Name="Background2" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/bg2.PNG"/>
  <Image Name="ListFrame" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/sqs.png" />
  <Image Name="NofocusedBackground" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/COMMON.BUTTON.FIRSTRUN.DORMANT.FULL.PNG"/>
  <Image Name="FocusedBackground" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/COMMON.BUTTON.LEFT.FOCUS.PNG"/>
  <Image Name="PressedBackground" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/COMMON.BUTTON.LEFT.FOCUSOVERLAY.PNG"/>
  <Image Name="HoverBackground" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/COMMON.BUTTON.LEFT.FOCUS.PNG"/>
  <Image Name="WinLogo" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/MEDIACENTERLOGO.PNG"/>
  <Image Name="Introduction" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/introduction.png"/>
  <Image Name="Logo" Image="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/Microsoft.com/NV/Variable/MCE/Assets/Base64Binary/Logo.png"/>
  
  <UI Name="Introduction">
    <Properties>
      <cor:String Name="Title" cor:String="Digital Antenna(DMB-TH PBDA)诊断"/>
      <cor:String Name="SubTitle" cor:String="地面数字电视设置注意事项"/>
      <cor:String Name="Description" cor:String="地面数字电视收看的效果与天线的位置和角度非常相关"/>
      <cor:String Name="Description2" cor:String="请注意:"/>
      <cor:String Name="ChosenItem" cor:String="null"/>
    </Properties>
    <Locals>
	<addin:AddInHost Name="AddInHost"/>
      <Command Name="Back" Description="上一步"/>
      <Command Name="Next" Description="下一步"/>
      <Command Name="Skip" Description="跳过"/>
      <ArrayListDataSet Name="ArrayList">
        <Source>
          <cor:String cor:String="1、请根据设备提供商的说明书正确连接设备和天线。"/>
          <cor:String cor:String="2、天线的位置要尽量靠近朝向电视塔的窗户。"/>
          <cor:String cor:String="3、在同样的位置，还要调节天线的朝向，以得到最强的信号强度和质量。"/>
          <cor:String cor:String="4、要想得到最好的强度和质量请使用室外天线。"/>
        </Source>
      </ArrayListDataSet>
    </Locals>
    <Rules>
      <Changed Source="[Next.Invoked]">
        <Actions>
          <Navigate Source="PBDA://2734DC82-774D-4daa-A5AD-2838B5A58127/GPNVSCMD.do?cmd=LFILE;filename=Setup_FirstPage.mcml"/>
        </Actions>
      </Changed>
      <Changed Source="[Back.Invoked]">
        <Actions>
          <Invoke Target="[AddInHost.ApplicationContext.CloseApplication]"/>
        </Actions>
      </Changed>
      <Changed Source="[Skip.Invoked]">
        <Actions>
          <Invoke Target="[AddInHost.ApplicationContext.CloseApplication]"/>
        </Actions>
      </Changed>
      <Rule>
        <Actions>
          <Invoke Target="[NextButton.NavigateInto]"/>
        </Actions>
      </Rule>
    </Rules>
    <Content>
      <Panel>
        <Children>
          <Panel Layout="Anchor" Margins="0,46,100,20">
            <Children>
              <Text Name="TitleText" Content="[Title]" Color="color://me:TitleColor" Font="font://me:TitleFont">
                <LayoutInput>
                  <AnchorLayoutInput Left="Parent,.150" Top="Parent,0,0"/>
                </LayoutInput>
              </Text>
              <Graphic Content="image://me:WinLogo" MaximumSize="251,36" MinimumSize="251,36">
                <LayoutInput>
                  <AnchorLayoutInput Right="Parent,1,-30" Top="Parent,0,20"/>
                </LayoutInput>
              </Graphic>
              <Panel Name="Content" Layout="VerticalFlow">
                <LayoutInput>
                  <AnchorLayoutInput Left="Parent,.155"  Right="Parent,0.7" Top="TitleText,1,45"/>
                </LayoutInput>
                <Children>
                  <Text Name="SubTitleText" Content="[SubTitle]" WordWrap="true" Color="color://me:SubTitleColor" Font="font://me:SubTitleFont">
                    <LayoutInput>
                      <AnchorLayoutInput Left="Parent,0" Top="Parent,0"/>
                    </LayoutInput>
                  </Text>
                  <Text Name="DescriptionText" Content="[Description]" WordWrap="true" Color="color://me:DescriptionColor"  Font="font://me:DescriptionFont">
                    <LayoutInput>
                      <AnchorLayoutInput Left="Parent,0" Top="SubTitleText,1,50"/>
                    </LayoutInput>
                  </Text>
                  <Text Name="Description2Text" Content="[Description2]" WordWrap="true" Color="color://me:DescriptionColor"  Font="font://me:DescriptionFont">
                    <LayoutInput>
                      <AnchorLayoutInput Left="Parent,0" Top="DescriptionText,1,25"/>
                    </LayoutInput>
                  </Text>
                  <Panel Name="Contents" Layout="Anchor">
                    <LayoutInput>
                      <AnchorLayoutInput Left="Parent,0"  Top="Description2Text,1,20"/>
                    </LayoutInput>
                    <Children>
                      <me:TextScroller Name="Scroller" ArrayList="[ArrayList]"/>
                      <Text Name="CurrentCity" WordWrap="true" Color="color://me:DescriptionColor"  Font="font://me:DescriptionFont">
                        <LayoutInput>
                          <AnchorLayoutInput Left="Scroller,1,20" Top="Scroller,0"/>
                        </LayoutInput>
                      </Text>
                    </Children>
                  </Panel>
                </Children>
              </Panel>
              <Graphic Name="IntroductionGr" Content="image://me:Introduction" MaximumSize="264,250"  MinimumSize="264,250">
                <LayoutInput>
                  <AnchorLayoutInput Left="Parent,0.7"  Top="Content,0.16" />
                </LayoutInput>
              </Graphic>
              <Graphic Content="image://me:Logo" MaximumSize="264,48"  MinimumSize="264,48">
                <LayoutInput>
                  <AnchorLayoutInput Left="IntroductionGr,0"  Top="IntroductionGr,1.1"/>
                </LayoutInput>
              </Graphic>
              <!--<Panel>
                <Layout>
                  <FlowLayout StripAlignment="Far"  Orientation="Horizontal" Spacing="50,0"/>
                </Layout>
                <LayoutInput>
                  <AnchorLayoutInput   Horizontal="Center" Bottom="Parent,1,-10" />
                </LayoutInput>
                <Children>
                  <me:Button Name="BackButton" Command="[Back]"/>
                  <me:Button Name="NextButton" Command="[Next]"/>
                </Children>
              </Panel>-->
              <Panel>
                <LayoutInput>
                  <AnchorLayoutInput Right="Parent,0.932" Bottom="Parent,1,-5"/>
                </LayoutInput>
                <Layout>
                  <FlowLayout  StripAlignment="Far" Orientation="Horizontal" Spacing="20,0" />
                </Layout>

                <Children>
                  <me:Button Name="BackButton" Command="[Back]"/>
                  <me:Button Name="NextButton" Command="[Next]"/>
                  <me:Button Name="SkipButton" Command="[Skip]"/>
                </Children>
              </Panel>
            </Children>

          </Panel>
          <me:Background Name="Background"/>
        </Children>
      </Panel>
    </Content>
  </UI>
  
  <UI Name="TextScroller">
    <Properties>
      <ArrayListDataSet Name="ArrayList" ArrayListDataSet="$Required"/>
    </Properties>
    <Locals>
      <!-- The ScrollingHandler which reacts to user keyboard input. -->
      <!-- NOTE: HandlerStage must be "Bubbled."                     -->
      <ScrollingHandler Name="ScrollingHandler" HandlerStage="Bubbled"/>

      <!-- ScrollingData contains many ways to customize how scrolling -->
      <!-- should behave. It has methods to change the current scroll  -->
      <!-- position and it also reports the position. In this case,    -->
      <!-- the default values are used for the sample.                 -->
      <ScrollingData Name="ScrollingData" />
    </Locals>
    <Rules>
      <!-- Give ScrollingData to ScrollingHandler. -->
      <Default Target="[ScrollingHandler.ScrollingData]" Value="[ScrollingData]"/>
      <!-- Give Repeater to ScrollingData. -->
      <Default Target="[ScrollingData.Repeater]" Value="[ListRepeater]"/>
      <Default Target="[Input.Enabled]" Value="false"/>
    </Rules>
    <Content>
      <Panel Layout="VerticalFlow">
        <Children>
          <Panel Padding="0,0,0,0">
            <Children>
              <!-- The Scroller. It referrs to the ScrollingData too. -->
              <Scroller Orientation="Vertical" FadeSize="-5" ScrollingData="[ScrollingData]">
                <Children>
                  <!-- The Repeater. A direct child of the Scroller. -->
                  <Repeater Name="ListRepeater" Source="[ArrayList]">
                    <Layout>
                      <FlowLayout Orientation="Vertical" Spacing="10,0"
                                  ItemAlignment="Near"/>
                    </Layout>
                    <Content>
                      <!-- Repeating out the items. -->
                      <Text Content="[RepeatedItem!cor:String]" WordWrap="true" Color="color://me:DescriptionColor"  Font="font://me:DescriptionFont"/>
                    </Content>
                  </Repeater>
                </Children>
              </Scroller>
            </Children>
          </Panel>
        </Children>
      </Panel>
    </Content>
  </UI>
  
  <UI Name="Background">
    <Content>
      <Panel Layout="Anchor">
        <Children>
          <Graphic Content="image://me:Background1" Alpha="1" MaximumSize="0,110" MinimumSize="0,110" >
            <LayoutInput>
              <AnchorLayoutInput Top="Parent,0"/>
            </LayoutInput>
          </Graphic>
          <Graphic Content="image://me:Background2" Alpha="1" MaximumSize="0,110" MinimumSize="0,110" >
            <LayoutInput>
              <AnchorLayoutInput Bottom="Parent,1"/>
            </LayoutInput>
          </Graphic>
          <Graphic Content="image://me:Background" Layout="Fill" Alpha="1"/>

        </Children>
      </Panel>
    </Content>
  </UI>
  <UI Name="Button">
    <Properties>
      <!-- Command is a required parameter. -->
      <ICommand Name="Command" ICommand="$Required"/>

      <!-- Background color properties. -->
      <Color Name="BackgroundColor" Color="DimGray"/>
      <Color Name="BackgroundFocusedColor" Color="DarkGray"/>
      <Color Name="BackgroundHoverColor" Color="PaleGoldenrod"/>
      <Color Name="BackgroundPressedColor" Color="White"/>

      <!-- Label color properties. -->
      <Color Name="LabelColor" Color="White"/>
      <Color Name="LabelFocusedColor" Color="White"/>
      <Color Name="LabelHoverColor" Color="DimGray"/>
      <Color Name="LabelPressedColor" Color="Black"/>

      <!-- Label font property. -->
      <Font Name="LabelFont" Font="Microsoft YaHei,16"/>
    </Properties>

    <Locals>

      <!-- React to "click" input. -->
      <ClickHandler Name="Clicker"/>

    </Locals>

    <Rules>

      <!-- The command description is displayed by the text box. A  -->
      <!-- binding is used in case the description changes at       -->
      <!-- runtime.                                                 -->
      <Binding Source="[Command.Description]" Target="[Label.Content]"/>

      <Binding Source="[Command]" Target="[Clicker.Command]"/>

      <!-- Change color on click. -->
      <Condition Source="[Clicker.Clicking]" SourceValue="true">
        <Actions>
          <Set Target="[Background.Content]" Value="image://me:PressedBackground"/>
          <Set Target="[Label.Color]" Value="[LabelPressedColor]"/>
        </Actions>
      </Condition>

      <!-- Change color on mouse focus. -->
      <Condition Source="[Input.MouseFocus]" SourceValue="true">
        <Actions>
          <Set Target="[Background.Content]" Value="image://me:HoverBackground"/>
          <Set Target="[Label.Color]" Value="[LabelHoverColor]"/>
        </Actions>
      </Condition>
      <!-- Change color on key focus. -->
      <Condition Source="[Input.KeyFocus]" SourceValue="true">
        <Actions>
          <Set Target="[Background.Content]" Value="image://me:FocusedBackground"/>
          <Set Target="[Label.Color]" Value="[LabelFocusedColor]"/>
        </Actions>
      </Condition>
    </Rules>
    <Content>

      <!-- Solid background color. -->
      <Graphic Name="Background" Content="image://me:NofocusedBackground" Layout="Center" MaximumSize="166,30" MinimumSize="166,30">
        <Children>
          <!-- The label to display. -->
          <Text Name="Label" Color="[LabelColor]" Font="[LabelFont]"/>
        </Children>
      </Graphic>
    </Content>
  </UI>


</Mcml>
